This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
RE: Getting attached files from $file and moving to body field ~Keiko Dwojipyterettu 19.Jan.04 12:31 PM a Web browser Notes Client All ReleasesAll Platforms
You need to extract the file to the file system befor you try to attach it to the field of your choise.
envString is the enviormental string that defines where the file should be extracted to.
newAttName is the file name (I'm making sure that there are no two files with the same name as attachments in one document).
Set embObj = attDoc.getAttachment(attName)
Call embObj.extractFile(envString+newAttName)
Set embObj = rtitem.embedObject(EMBED_ATTACHMENT, "", envString+newAttName)